package org.renhj.rpc;

import java.io.IOException;

public interface Serializer {

    byte[] serialize(Object o) throws IOException;

    <T> T deserialize(Class<T> clazz, byte[] bytes) throws  IOException;

}
